<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
    [
        '<div contenteditable>',
          'abc^<ul><li>one</li><li>two</li><li>three|</li></ul>xyz',
        '</div>',
    ],
    'delete',
    '<div contenteditable>abc|xyz</div>',
    'Delete list');
selection_test(
    [
        '<div contenteditable>',
          '^abc<ul><li>one</li><li>two</li><li>three</li></ul>|xyz',
        '</div>',
    ],
    'delete',
    '<div contenteditable>|xyz</div>',
    'Deelte list with text before');
</script>
